Modular Path Queries with Arithmetic
نویسندگان
چکیده
We propose a new approach to querying graph databases. Our balances competing goals of expressive power, language clarity and computational complexity. A distinctive feature our is the ability express properties minimal (e.g. shortest) maximal most valuable) paths satisfying given criteria. To complex in modular way, we introduce labelling-generating ontologies. The resulting formalism computationally attractive - queries can be answered non-deterministic logarithmic space size database.
منابع مشابه
Modular arithmetic
Since congruence modulo m is an equivalence relation, it partitions the universe of integers into equivalence classes, which we’ll call congruence classes modulo m. Within any one of these classes, all of the members are congruent to all of the other members; but congruence modulo m never holds between members of different equivalence classes. For instance, there are two congruence classes modu...
متن کاملTheory of Database Queries with Arithmetic Relations
We consider the theory of database queries on a relational data model that includes a set of xed relations used to model arithmetic comparisons and operations. We describe how to extend several natural query languages such as rst-order logic, Datalog, and strati ed Datalog to to apply to databases in this model, and show that their relative expressive power is the same as it is for the standard...
متن کاملAnswering N-chain Recursive Queries with Arithmetic
N-chain recursions are important because the majority of single-linear recursions can be compiled to N-chain recursions or so-called bounded recursions [8], which are not recursive at all. It appeared for some time [3, 5] that ALL single linear recursions could be converted to N-chain recursions. Although that is now known [13] to be inaccurate it is still clear that the most popular forms of S...
متن کاملSafe Database Queries with Arithmetic Relations
We consider the theory of database queries on a relational data model that includes a set of xed relations used to model arithmetic comparisons and operations. We describe how to extend several natural query languages such as rst-order logic, Datalog, and stratiied Datalog to apply to databases in this model, and show that their relative expressive power is the same as it is for the standard re...
متن کاملPruning with Modular Arithmetic in NP problems
Using modular arithmetic we introduce a simple bound which applies to a wide range of bin-packing like problems. This bound must hold if a problem is to be soluble. When it fails, search can therefore be pruned. We show the value of such pruning in a greedy backtracking algorithm for number partitioning problems. As the bound can be used when solving inexact as well as exact partitioning proble...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Logical Methods in Computer Science
سال: 2021
ISSN: ['1860-5974']
DOI: https://doi.org/10.46298/lmcs-17(3:27)2021